-- GENERATED SPELL FOR [Bloodscalp Witch Doctor] --


function spell0_660(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_660', 609, 1)
end

function spell1_660(pUnit, Event) --@Healing Ward,Self--
pUnit:FullCastSpellOnTarget(5605,pUnit)
pUnit:RegisterEvent('Sorts_660', 32000, 1)
end

function Sorts_660(pUnit, Event)
local choix_sorts_660 = math.random(0, 1)
if choix_sorts_660 == 0 then
pUnit:RegisterEvent('spell0_660', 1, 1)
end
if choix_sorts_660 == 1 then
pUnit:RegisterEvent('spell1_660', 1, 1)
end
end

function mob660_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_660', math.random(1500, 3000), 1)
end

function mob660_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob660_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob660_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(660, 1, 'mob660_Action')
RegisterUnitEvent(660, 2, 'mob660_Leave')
RegisterUnitEvent(660, 3, 'mob660_Kill')
RegisterUnitEvent(660, 4, 'mob660_Die')
